package com.zsrt.java.day20170103.wrl.homework.demo02;

import org.junit.Test;

public class ImplCalDaoTest {

	@Test
	public void addTest() {
		// 接口使用：1 变量用接口声明；2 new的是实现类
		ICalDao cal = new ImplCalDao();
		int num1 = 4;
		int num2 = 5;
		int sum = cal.add(num1, num2);
		System.out.println(num1+"+"+num2+"="+sum);
	}

}
